package com.cake.entity;

import java.util.Date;

import com.cake.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

public class XxPosterReview extends BaseEntity {
    /**
     * 配送评论信息主键
     * 表字段 : xx_poster_review.id
     */
    private Long id;

    /**
     * 会员主键
     * 表字段 : xx_poster_review.member
     */
    private Long member;

    /**
     * 后台配送者主键
     * 表字段 : xx_poster_review.admin
     */
    private Long admin;

    /**
     * 评论者评分数
     * 表字段 : xx_poster_review.score
     */
    private Integer score;

    /**
     * 评论内容
     * 表字段 : xx_poster_review.content
     */
    private String content;

    /**
     * 是否显示
     * 表字段 : xx_poster_review.is_show
     */
    private Boolean isShow;

    /**
     * 评论者提交评论的ip
     * 表字段 : xx_poster_review.ip
     */
    private String ip;

    /**
     * 配送员配送的订单
     * 表字段 : xx_poster_review.posterorder
     */
    private Long posterorder;

    /**
     * 配送评论创建时间
     * 表字段 : xx_poster_review.create_date
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    /**
     * 配送评论最新修改时间
     * 表字段 : xx_poster_review.modify_date
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyDate;

    /**
     * 配送评论分数
     * 表字段 : xx_poster_review.post_score
     */
    private Integer postScore;

    /**
     * 评论会员id
     */
    private Long memberId;

    /**
     * 送货人id
     */
    private Long adminId;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 会员名称
     */
    private String memberName;

    /**
     * 送货人名称
     */
    private String adminName;
    /**
     * 订单号
     */
    private String orderSn;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_poster_review
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Long getAdminId() {
		return adminId;
	}

	public void setAdminId(Long adminId) {
		this.adminId = adminId;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public String getAdminName() {
		return adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	public String getOrderSn() {
		return orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMember() {
        return member;
    }

    public void setMember(Long member) {
        this.member = member;
    }

    public Long getAdmin() {
        return admin;
    }

    public void setAdmin(Long admin) {
        this.admin = admin;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Boolean getIsShow() {
        return isShow;
    }

    public void setIsShow(Boolean isShow) {
        this.isShow = isShow;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public Long getPosterorder() {
        return posterorder;
    }

    public void setPosterorder(Long posterorder) {
        this.posterorder = posterorder;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public Integer getPostScore() {
        return postScore;
    }

    public void setPostScore(Integer postScore) {
        this.postScore = postScore;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", member=").append(member);
        sb.append(", admin=").append(admin);
        sb.append(", score=").append(score);
        sb.append(", content=").append(content);
        sb.append(", isShow=").append(isShow);
        sb.append(", ip=").append(ip);
        sb.append(", posterorder=").append(posterorder);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", postScore=").append(postScore);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}